home *** CD-ROM | disk | FTP | other *** search
/ Bandai Visual CD-ROM Previews 3 / Bandai Visual CD-ROM Previews 3.iso / LARTHUR'S LEGEND / battle1 / 00014_Script_14 < prev    next >
Text File  |  1995-02-07  |  2KB  |  90 lines

  1.  
  2. -----------------------------------------------------
  3. on movesprite plsH , plsV , startNum , endNum
  4.   if the castNum of sprite 2 < endNum then 
  5.     set the castNum of sprite 2  =the castNum of sprite 2 + 1
  6.   else set the castNum of sprite 2  to startNum  
  7.   global H , V
  8.   set  H = H + plsH
  9.   set  V = V + plsV
  10.   set the locH of sprite 2 = H 
  11.   set the locV of sprite 2 = V
  12.   --    showglobals
  13. --  updatestage
  14. end movesprite
  15. -----------------------------------------------------
  16. on setsprite caNum
  17.   global H , V
  18.   set the castNum of sprite 2 to caNum
  19.   set the type of sprite 2 = 1
  20.   set the ink of sprite 2 = 36
  21.   set the locH of sprite 2 = H
  22.   set the locV of sprite 2 = V
  23. end setsprite
  24. ------------------------------------------------------
  25. on lcheckpos chkH , chkV , lav 
  26.   if the locH of sprite 2 < chkH   then go to lav
  27. end if
  28. end lcheckpos
  29. ------------------------------------------------------
  30. on rcheckpos chkH , chkV , lav 
  31. if the locH of sprite 2 > chkH   then 
  32. picset
  33. go to lav
  34. end if
  35. end rcheckpos
  36. ------------------------------------------------------
  37. on picset
  38. puppetsprite 2 , true
  39. global H , V
  40. set H = 620
  41. set V = random (180) + 200
  42. set the type of sprite 2 = 1
  43. set the ink of sprite 2 = 36
  44. set the castNum of sprite 2 = 2
  45. set the locH of sprite 2 = H
  46. set the locV of sprite 2 = V
  47. --updatestage
  48. end picset
  49. -----------
  50. on Moveken
  51. set the castNum of sprite 15 to 26
  52. global ken1
  53. set ken1 = kenA(mNew)
  54. --
  55. factory kenA
  56. method mNew
  57. dontpassevent
  58. global ken1
  59. when mousedown then kendown
  60. set the perframehook to me
  61. puppetsprite 15, 1
  62. method mMove x, y
  63. set the locH of sprite 15 to x
  64. set the locV of sprite 15 to y
  65. method mAtFrame
  66. dontpassevent
  67. me(mMove, the mouseH, the mouseV)
  68.  
  69. on kendown
  70. puppetsound "襃"
  71. set the castNum of sprite 15 to 27
  72. when mouseup then moveken
  73. end
  74.  
  75.  
  76. method mDispose
  77. global ken1
  78. set ken1 = 1
  79. when keydown then nothing
  80. --
  81.  
  82. on clearken
  83. global ken1
  84. set the perframehook = 0
  85. if objectp(ken1) = 1 then 
  86. ken1(mDispose)
  87. end if
  88. end
  89.  
  90.